import Vue from 'vue';
import Vuex from 'vuex';
import user from './modules/user';
import keepAliveNames from './modules/keepAliveNames';
import routesList from './modules/routesList';
import tagsViewRoutes from './modules/tagsViewRoutes';
import themeConfig from './modules/themeConfig';
import userInfos from './modules/userInfos';
import getters from './getters';

Vue.use(Vuex);
const store = new Vuex.Store({
	modules: {
		user,
		keepAliveNames,
		tagsViewRoutes,
		routesList,
		userInfos,
		themeConfig,
	},
	getters,
});

export default store;
